package com.jml.mayi.consumer;

import com.jml.dubbo.server.proxy.RpcClientProxy;
import com.jml.service.api.MemberService;


public class Consumer {
    public static void main(String[] args) {
        try {
            MemberService memberService = new RpcClientProxy().create(MemberService.class);
            String user = memberService.getUser(10L);
            System.out.println("result:" + user);
            int delUser = memberService.delUser(1L);
            System.out.println("delUser:" + delUser);
            // 使用代理模式生成代理类
        } catch (Exception e) {
            e.printStackTrace();

        }
    }
}
